class CreatePatientDatas < ActiveRecord::Migration
  def self.up
    create_table :patient_datas do |t|
      t.string :first_name
      t.string :laste_name
      t.string :adress
      t.string :email
      t.integer :pesel
      t.integer :telpehone_number

      t.timestamps
    end

    PatientData.create :first_name => "Jan",
      :laste_name => "Kowalski",
      :adress => "ul. Sudecka BB/5",
      :email => "dsad@fdsa.pl",
      :pesel => 1232325,
      :telpehone_number => 134324
  end



  def self.down
    drop_table :patient_datas
  end
end
